require('./PageParentevaluate.styl');
import { Control } from 'react-keeper';
import { Boxs, NavBar,Context } from 'saltui';
const { HBox, Box, VBox } = Boxs;
import ui from 'clientConfig/util/jsapi/ui';
const reactMixin = require('react-mixin');
const Actions = require('./actions');
const Store = require('./store');
const WithRefresh = require('components/withrefresh');
const PendingList = require('components/pendinglist');
const classNames = require("classnames")
const ListWithEvaluate = WithRefresh(
    PendingList,
    (pageNum, props, success, error) => {
        Actions.fetchEvaluteList(pageNum, props, success, error)
    }
);
class Parentevaluate extends React.Component {

    constructor(props) {
        super(props);
        this.state = {
            listdata: [],
        };
        this.handleOnLeftClick = this.handleOnLeftClick.bind(this)
    }
    handleOnLeftClick() {
        ui.close();
    }

    render() {
        return (
            <div className="parentevaluate">
                <NavBar
                    className={classNames({"ios-nav-bar":window.isIphone})}
                    isShow={false}
                    title='老师评价'
                    onLeftClick={this.handleOnLeftClick}
                    onRightClick={Context.noop}
                    rightText=''
                />
                <ListWithEvaluate
                    className="msg"
                    ref="ListWithEvaluate"
                    leftSlip={false}
                    type="parent"
                />
            </div>
        );
    }

    componentWillMount() {
    }

    componentDidMount() {
    }

    componentWillReceiveProps(nextProps) {
    }

    shouldComponentUpdate(nextProps, nextState) {
        return true;
    }

    componentWillUpdate(nextProps, nextState) {
    }

    componentDidUpdate(prevProps, prevState) {
    }

    componentWillUnmount() {
    }
}

reactMixin.onClass(Parentevaluate, Reflux.connect(Store));

module.exports = Parentevaluate;
